package com.coursemanage.home;

import com.jfinal.core.Controller;



public class HomeController extends Controller {

	public void index() {
		String UserId=getCookie("UserId");		
		if (UserId==null||UserId=="") {
			redirect("/admin/account/login.jsp");
			return;	 
		}	
		System.err.println(getCookie("UserName"));
		setAttr("UserName", getCookie("UserName"));
		render("index.jsp");
		
	}
	public void main() {
		String UserId=getCookie("UserId");		
		if (UserId==null||UserId=="") {
			redirect("/admin/account/login.jsp");
			return;	 
		}	
		render("main.jsp");
	}
	
	
	
	public void initMenu() {
		
	}
	
}
